package com.ruoyi.web.controller.demo.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆申请对象 car_process
 * 
 * @author ruoyi
 * @date 2022-12-26
 */
public class CarProcess extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 申请id */
    @Excel(name = "申请id")
    private Long processId;

    /** 紧急程度 默认为普通 */
    @Excel(name = "紧急程度 默认为普通")
    private String urgent;

    /** 借用车辆 车辆id */
    @Excel(name = "借用车辆 车辆id")
    private Long usedCar;

    /** 用车事由 用车事由 */
    @Excel(name = "用车事由 用车事由")
    private String reason;

    /** 开始时间 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间 开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间 结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 始发地 */
    @Excel(name = "始发地")
    private String startLocation;

    /** 目的地 */
    @Excel(name = "目的地")
    private String endLocation;

    /** 创建人 应为当前用户姓名 */
    @Excel(name = "创建人 应为当前用户姓名")
    private Long creater;

    /** 创建时间 点击申请详情自动生成 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间 点击申请详情自动生成", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 归还状态 归还状态（0为未归还，1为已归还） */
    @Excel(name = "归还状态 归还状态", readConverterExp = "0=为未归还，1为已归还")
    private String status;

    /** 车辆列信息 */
    private List<CarList> carListList;

    private CarList carList;

    private String createrName;





    public String getCreaterName() {
        return createrName;
    }

    public void setCreaterName(String createrName) {
        this.createrName = createrName;
    }

    public CarList getCarList() {
        return carList;
    }

    public void setCarList(CarList carList) {
        this.carList = carList;
    }

    public void setProcessId(Long processId)
    {
        this.processId = processId;
    }

    public Long getProcessId() 
    {
        return processId;
    }
    public void setUrgent(String urgent) 
    {
        this.urgent = urgent;
    }

    public String getUrgent() 
    {
        return urgent;
    }
    public void setUsedCar(Long usedCar) 
    {
        this.usedCar = usedCar;
    }

    public Long getUsedCar() 
    {
        return usedCar;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStartLocation(String startLocation) 
    {
        this.startLocation = startLocation;
    }

    public String getStartLocation() 
    {
        return startLocation;
    }
    public void setEndLocation(String endLocation) 
    {
        this.endLocation = endLocation;
    }

    public String getEndLocation() 
    {
        return endLocation;
    }
    public void setCreater(Long creater) 
    {
        this.creater = creater;
    }

    public Long getCreater() 
    {
        return creater;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<CarList> getCarListList()
    {
        return carListList;
    }

    public void setCarListList(List<CarList> carListList)
    {
        this.carListList = carListList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("processId", getProcessId())
            .append("urgent", getUrgent())
            .append("usedCar", getUsedCar())
            .append("reason", getReason())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("startLocation", getStartLocation())
            .append("endLocation", getEndLocation())
            .append("remark", getRemark())
            .append("creater", getCreater())
            .append("createdTime", getCreatedTime())
            .append("status", getStatus())
            .append("carListList", getCarListList())
            .toString();
    }
}
